#include "SerializableTest.h"
#include <cppunit/TestCase.h>

#include "Laser.h"
#include "Afgrond.h"
#include "Muur.h"
#include "Checkpoint.h"
#include "Startpositie.h"
#include "Vloer.h"

#include <iostream>
using namespace std;

void SerializableTest::testMap()
{
	string serial = "Map:0:5,5,MMMMMMMMMMMMC1VVVVMMMMVVC0VVMMMMS1AAS2MMMMMMMMMMMM:nieuwe map";
	Map map; 
	//map.unserialize(serial);
	string testSerial = map.serialize();
	CPPUNIT_ASSERT_EQUAL( serial, testSerial );	
}

void SerializableTest::testVakje()
{
	Laser* laser = new Laser(LINKS);
	CPPUNIT_ASSERT_EQUAL( string("L1"), laser->serialize() );
	delete laser;
	

	Vloer* vloer = new Vloer();
	CPPUNIT_ASSERT_EQUAL( string("VV"), vloer->serialize() );	
}


